package com.example.medicalzb.domain;

import com.example.medicalzb.domain.superdomain.SuperDomain;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@ToString
public class Drug extends SuperDomain {
    private Long drugId;

    @NotNull(message = "药品名称不能为空")
    private String drugName;

    @NotNull(message = "药品成分信息不能为空")
    private String drugInfo;

    @NotNull(message = "药品作用不能为空")
    private String drugEffect;

    @NotNull(message = "药品图片url不能为空")
    private String drugImg;

    private Date updatetime;

    private Date createtime;

    @NotNull(message = "药品发布者不能为空")
    private String drugPublisher;
}
